﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _11._2
{
    internal class Program
    {
        static void Main(string[] args)
        {
            Animals animalC=new Animals();
            animalC.Add(new Cow("cow1"));
            animalC.Add(new Chicken("Chicken1"));
            foreach (Animal item in animalC)
            {
                item.Feed();                
            }
            Console.ReadLine(); 
        }
    }
}
